package com.example.member.api.feign;

import com.example.common.base.constant.ServiceNameConstant;
import com.example.member.api.entity.Member;
import com.example.member.api.feign.factory.MemberServiceFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name= ServiceNameConstant.MEMBER_SERVICE ,fallbackFactory = MemberServiceFallbackFactory.class)
public interface MemberService {

    @GetMapping(value = "/member/info/{username}")
    Member getMmeberInfo(@PathVariable("username") String username);

}
